#define _CRT_SECURE_NO_WARNINGS 2

#include"stack.h"

int main() {
	stack st;
	StackInit(&st);
	StackPush(&st, 'a');
	StackPush(&st, 'b');
	StackPush(&st, 'c');
	StackPush(&st, 'd');

	StackPop(&st);

	while (st.top) {
		printf("%c->", st.arr[st.top - 1]);
		st.top--;
	}

	StackDestroy(&st);
	return  0;
}